cmake_minimum_required (VERSION 3.2)

project (sock5_demo)

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

aux_source_directory (src SRC_LIST)

SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb ")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
add_compile_options(-std=c++11 -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -O0 -fno-strict-aliasing -fno-omit-frame-pointer -fthreadsafe-statics -fexceptions -frtti) 

include_directories (src)
include_directories (3rd)

link_directories(${PROJECT_SOURCE_DIR}/lib)

add_executable (sock5_demo.out ${SRC_LIST})

target_link_libraries (sock5_demo.out libevent.a)
target_link_libraries (sock5_demo.out pthread)
